package com.huiminpay.message;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName ConsumerSimple
 * @Author: longlong
 * @CreateDate: 2023/12/18 11:45
 */

@Component
@RocketMQMessageListener(topic = "my-topic",consumerGroup = "demo-producer-group")
public class ConsumerSimple implements RocketMQListener<String> {

    @Override
    public void onMessage(String s) {
        System.out.println(s);
    }
}
